import {request} from "../../utils/request"
import {request2} from "../../utils/request2"
// 全部商品列表
export let goodsList= (params:object)=>{
	return request.postRequest<number|undefined>("ware/wareList",params)
}
// 搜索商品 
export let searchGoodsInfo= (params:object)=>{
	return request.postRequest<number|undefined>("ware/searchAllWare",params)
}
// 商品上架状态 
export let ListingStatus= (params:object)=>{
	return request.postRequest<number|undefined>("ware/wareListByDown",params)
}
// 商品类型 
export let goodsType= (params:object)=>{
	return request.postRequest<number|undefined>("ware/wareListByType",params)
}
// 添加商品 
export let addGoods= (params:object)=>{
	return request.postRequest<number|undefined>("ware/insertWare",params)
}
// 修改商品
export let updateGoods= (params:object)=>{
	return request.postRequest<number|undefined>("ware/updateWare",params)
}
// 删除商品
export let delGoods= (params:object)=>{
	return request.postRequest<number|undefined>("ware/deleteWare",params)
}
// 根据id查询商品 
export let getGoodsById= (params:object)=>{
	return request.postRequest<number|undefined>("ware/wareInfo",params)
}
// 批量上传商品图片 
export let uploadImg= (params:object)=>{
	return request2.postRequest("ware/uploadImg",params)
}
// 批量上传详情图片 
export let uploadDetails= (params:object)=>{
	return request2.postRequest("ware/uploadDetails",params)
}
